package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author youli.chen
 * @ProjectName xbb-pro
 * @Description: 前端传入查询公海池规则详情实体类
 * @date 2019/1/24 16:57
 */
@Setter
@Getter
@ToString
public class CustomerRuleDetailDTO extends BaseDTO {

    /**
     * 规则枚举code  1.拜访时间2.有无机会3.有无合同4.总数限制5.前负责人规则6.捞取频次限制
     */
    @NotNull(message = "{dto.msg.customerRuleDetail.ruleType.NotNull}")
    @Range(min = 1, max = 6, message = "{dto.msg.customerRuleDetail.ruleType.Range}")
    private Integer ruleType;
}
